package cn.com.qiancheng;

import java.io.IOException;

import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class FirstS extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		PrintWriter out = resp.getWriter();
		String user = req.getParameter("user");
		String pass = req.getParameter("passw");
		out.println("<html>");
		out.println("<head>");
		out.println("<meta charset = \"UTF-8\">");
		out.println("<title>FirstS</title>");
		out.println("</head>");
		out.println("<body background = \"5-13050GZ015.gif\">");
		out.println("<p align = \"center\">Welcome to Disney!!</p>");
		out.println("<img src = \"wsj2015-5.png\" alt = \"HalloWeen\">");
		out.println("<p align = \"center\">"+user+"</p>");
		out.println("<p align = \"center\">"+pass+"</p>");
		out.println("</body>");
		out.println("</html>");
	}

}
